Troubleshooting data, index, or queue issues on Magento.
EMPTY_QUEUE=1
argument in the job, the index size isn’t checked.
algoliasearch_queue
table.
If a job fails, it needs to be restarted. This will continue the indexing job from where it stopped, so it won’t run it in its entirety again. If the queue is enabled, the restart will happen automatically.
The indexing job can be restarted manually by pressing the restart link. This can be found by clicking the index on the Magento Dashboard.
suggestions
index often triggers this error. In the extension, the suggestions index pulls data from Magento’s Search Terms collection. Search Terms is a collection of all submitted queries made by the search form. The extension indexes the query_text
value as is, which can sometimes throw errors if Search Terms contain malignant queries generated by bad actors like robots. Lax conditions allow indexing of irrelevant queries.
You can enforce higher conditions to reduce the less relevant Search Terms by increasing the numeric values in Stores > Algolia Search > Autocomplete Menu.
The extension indexes search terms based on these configurations:
query_texts
values from the collection.
Record is too big
.
To reduce the amount of errors thrown, the extension truncates or skips attributes with values that are larger than a certain size:
The function below throws the warning error:
\Algolia\AlgoliaSearch\Helper\AlgoliaHelper::prepareRecords()
The private method handleTooBigRecord
evaluates attributes and flags large ones.
This preventive strategy isn’t always perfect as some attributes are important for search.
description
, have a lot of content or hidden script tags that aren’t necessary for search. To reduce the size of this attribute, strip the HTML tags before indexing.
To change attributes before indexing, create an observer on the dispatched event for the entity you need.
For products, this event is: algolia_after_create_product_object